
			

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<%include("/common/include.html"){}%>
		<style type="text/css">
			ul{
				height:auto;
				width:100%;
				padding:10px;
			}
			ul li{
				width:230px;
				display:inline-block;
			}
			#mbtable tr{
				width:100%;height: 30px;
			}
			.mouse_color{ 
				background-color: #f28338; 
			} 
		</style>
	</head>
	<body style="overflow-x:hidden;">
		<form>
			<div data-options="region:'north'" style="height:80px;border: 1px solid #DDDDDD;">
					<%include("/customer/searchCustomer2.html"){}%>
			</div>
		</form>
		<div  id="mbtablediv1" class="easyui-panel"  style="height:auto;padding:5px;" align="center" >
			<table   id="mbtable1" border="1"  bordercolor="#DDDDDD" style="width:100%;height:85%; text-align: center;font-size: 15px;">
				<tr style="font-weight: bold;height: 30px;">
					<td colspan="12" align="left" >日期：${resultTotal.date! }</td>
				</tr>
				<tr>
					<td style="width:5.5%;height: 30px;"></td>
					<td style="width:8%">新增人数</td>
					<td style="width:8%">到店人数</td>
					<td style="width:8%">掉秤人数</td>
					<td style="width:8%">掉秤斤数</td>
					<td style="width:8%">平秤人数</td>
					<td style="width:8%">涨秤人数</td>
					<td style="width:8%">涨秤斤数</td>
					<td style="width:8%">巩固人数</td>
					<td style="width:8%">精护人数</td>
					<td style="width:8%">总减重</td>
					<td style="width:8.3%">掉秤比例</td>
					<td style="width:8.3%">精护比例</td>
				</tr>
				<tr>
					<td style="color:red;width:5.5%;font-weight: bold;height: 30px;" >合计</td>
					<td>${resultTotal.xzrs! }人</td>
					<td>${resultTotal.totalofpeople! }人</td>
					<td>${resultTotal.totalofdownweightpeople! }人</td>
					<td>${resultTotal.downweight! }斤</td>
					<td>${resultTotal.totalofnoloseweight! }人</td>
					<td>${resultTotal.totalofupweightpeople! }人</td>
					<td>${resultTotal.upweight! }斤</td>
					<td>${resultTotal.gonggurenshu! }人</td>
					<td>${resultTotal.jinghu! }人</td>
					<td>${resultTotal.totalloseweight! }斤</td>
					<td>${resultTotal.proportionforloseweight! }%</td>
					<td>${resultTotal.proportionforjinghu! }%</td>
				</tr>
			</table>
		</div>
		
		<div  id="mbtablediv" class="easyui-panel"  style="height:auto;padding:5px;" align="center" >
				<table   id="mbtable" border="1"  bordercolor="#DDDDDD" style="width:100%;height:85%; text-align: center;font-size: 15px;">
										<tr style="font-weight: bold;">
										<td rowspan="2"  style="width:3%;">序号</td>
										<td rowspan="2" style="width:6%;height: 30px;">名字</td>
										<td rowspan="2" style="width:6%;height: 30px;">类型</td>
										<td rowspan="2" style="width:6%;height: 30px;">开始时间</td>
										<td rowspan="2" style="width:6%;height: 30px;">结束时间</td>
										<td rowspan="2" style="width:5%;">服务时间<br/>(分钟)</td>
										<td rowspan="2" style="width:5%;">体重</td>
										<td rowspan="2" style="width:3%;">能量膏</td>
										<td colspan="3" >减重情况</td>
										<td rowspan="2" style="width:5%;">手法</td>
										<!-- <td colspan="8" >精护部位</td> -->
										<%if(partnum == 8){%>
										<td colspan="8" >精护部位</td>
										<%}else if(partnum == 7){%>
										<td colspan="7" >精护部位</td>
										<%}else if(partnum == 5){%>
										<td colspan="5" >精护部位</td>
										<%}else if(partnum == 4){%>
										<td colspan="4" >精护部位</td>
										<%}else{%>
										<td colspan="6" >精护部位</td>
										<%}%>
										<td rowspan="2"  style="width:18%;height: 30px;">备注</td>
										
										</tr>
										<tr >
										<td >涨称</td>
										<td>掉称</td>
										<td >平称</td>

										<td  style="width:7%;height: 30px;">腰部</td>
										<td style="width:7%;height: 30px;">大腿</td>
										<td style="width:7%;height: 30px;">小腿</td>
										<td style="width:7%;height: 30px;">胳膊</td>
										<!-- <td  style="width:7%;height: 30px;">背部</td>
										<td style="width:7%;height: 30px;">胯部</td>
										<td style="width:7%;height: 30px;">左副乳</td>
										<td style="width:7%;height: 30px;">右副乳</td> -->

										<%if(bbExp=='1'){%>
												<td style="width:8%;height: 30px;">背部</td>
										<%}%>
										<%if(kbExp=='1'){%>
										<td style="width:8%;height: 30px;">胯部</td>
										<%}%>
										<%if(Exp=='1'){%>
										<td style="width:8%;height: 30px;">左副乳</td>
										<td style="width:8%;height: 30px;">右副乳</td>
										<%}%>
										</tr>
										
										<%for(result in resultList){%>
										<tr>
										<td  >${resultLP.index}</td>
										<%if(result.fwrq == result.jdrq){%>
										<td   >
										<a href="#" style="color: blue;border-bottom:1px solid #000;" class="button-edit" onclick=lookCustomerInfo('${result.customerid}')>${result.name}</a>
										</td>
										<%}else {%>
										<td   >
										<a href="#" style="color: blue;" class="button-edit" onclick=lookCustomerInfo('${result.customerid}')>${result.name}</a>
										</td>
										<%}%>
										<td   >
										<%if(result.isgg=='0'){%>
											<span style="font-weight: bold;">减肥</span>
										<%}else  if(result.isgg=='1'){%>
											<span style="color: green;font-weight: bold;">巩固</span>
										<%}else {%>
											<span style="color: red;font-weight: bold;">塑形</span>
										<%}%>
										
										</td>
										
										<td >${result.starttime,"HH:mm"}</td>
										<td >${result.endtime,"HH:mm"}</td>
										<td >${result.fwsj}</td>
										<td  >${result.weight}</td>
										<%if(result.weight!=null){%>
										<td  >${result.plasterCount}</td>
										
										<%if(result.weight-result.lastWeight>0){%>
											<td style="border: 3px solid red;" >
											${result.tzc*-1} 
											</td>
											<td ></td>
											<td ></td>
										<%}else if(result.lastWeight-result.weight>0){%>
											<td  ></td>
											<td style="border: 3px solid green;">
											${result.tzc}
											</td>
											<td ></td>
										<%}else if(result.lastWeight-result.weight==0){%>
											<td ></td>
											<td ></td>
											<td style="border: 3px solid yellow;">0</td>
										<%}%>
										<td   id="${result.customerid}sftd">
										<%if(result.sfname!=null){%>
												${result.sfname}
										<%}%>
										</td>
										<%}else{%>
											<td ></td>
											<td ></td>
											<td ></td>
											<td ></td>
											<td ></td>
										<%}%>
										<td   id="${result.customerid}ybtd">
										<%if(result.yb!=null){%>
												${result.yb}
										<%}%>
										</td>
										
										<td   id="${result.customerid}dttd">
										<%if(result.dt!=null){%>
												${result.dt}
										<%}%>
										</td>
										<td  id="${result.customerid}xttd">
										<%if(result.xt!=null){%>
												${result.xt}
										<%}%>
										</td>
										<td  id="${result.customerid}gbtd">
										<%if(result.gb!=null){%>
												${result.gb}
										<%}%>
										</td>
										<%if(bbExp=='1'){%>
										<td  id="${result.customerid}bbtd">
										<%if(result.bb!=null){%>
												${result.bb}
										<%}%>
										</td>
										<%}%>
										
										<%if(kbExp=='1'){%>
										<td  id="${result.customerid}kbtd">
										<%if(result.kb!=null){%>
												${result.kb}
										<%}%>
										</td>
										<%}%>
										
										<%if(Exp=='1'){%>
										<td  id="${result.customerid}zfrtd">
										<%if(result.zfr!=null){%>
												${result.zfr}
										<%}%>
										</td>
										<td  id="${result.customerid}yfrtd">
										<%if(result.yfr!=null){%>
												${result.yfr}
										<%}%>
										</td>
										<%}%>
								
										<td  >${result.bz !}</td>
										</tr>
										<%}%>
										</table>
										<table id="targetTable" style="height: 250;width: 500px"></table>
										
		</div>
		
		
		
		<script>
		
		function lookCustomerInfo(ids){
			loadViewDialog('查看顾客详细信息', '${cxt!}/customerInfoStatistic/lookCustomerInfo?ids=' + ids);
		}
		
		function deleterow(cid,sid){
			var strid = cid+'yt';
			var sf = $("#"+strid).val();
			if(sf!=null&&sf<=-1){
				$.alert(parent.$, "能量膏格式错误！");
				return false
			}
			if(sf==null){
				sf="0";
			}
			parent.$.messager.confirm('Confirm','结束服务吗？',function(r){
				if (r){
					var url = "${cxt!}/beingServed/updateSer";
					var data={"cid":cid,"yt":sf,"sid":sid};
					$.post(url, data, function(result) {
						if (result.msg==true) {
							parent.window.nodeClick("正在服务", "/beingServed");
							$.slideMsg("结束服务！", $pjq);
						} else {
							$.alert($pjq, result.msg);
						}
					}, 'json');
					
					
				}
			});
		}
			function savesfInfo(id,bw,sid){
				if(bw=='sf'){
					var strid = id+'sf';
					var sf = $("#"+strid).val();
					if(sf!=null&&sf.length<=6){
						$.alert(parent.$, "验证码不能为空！");
						return false
					}
					var url='/beingServed/updateSer';
					var data={"cid":id,"sf":sf,"sid":sid};
					var reData = common_ajax.ajaxFunc(url,data,"json");
					if(reData.msg==true){
						var strtdid = id+'sftd';
						$("#"+strtdid).html(reData.user.name);
					}else{
						$.alert(parent.$, "验证码错误！");
					}
				}
				if(bw!=null&&bw!='sf'){
					var strid = id+bw;
					var sf = $("#"+strid).val();
					if(sf!=null&&sf.length<=6){
						$.alert(parent.$, "验证码不能为空！");
						return false
					}
					
					loadDialog($("#mbtablediv"), null, '客户产品', "${cxt!}/beingServed/getCustomerProduct?bw="+bw+"&cid="+id+"&sid="+sid+"&mima="+sf);
				}
			}
		
			
		
			
			
		
			$("#mbtable tr").mouseover(function(){ 
			$(this).find("td").addClass("mouse_color"); 
			}); 

			/** 
			* 鼠标移出的颜色 
			*/ 
			$("#mbtable tr").mouseout(function(){ 
			$(this).find("td").removeClass("mouse_color"); 
			}); 
		
		
		
		
		/* 	$(document).ready(function () {
				var hybh=$('#customerHybh').val();
				var name=$('#customerName').val();
				var phone=$('#customerPhone').val();
				var url='/bentryRegister/getCusByHybh';
				var data={"hybh":hybh,"name":name,"phone":phone};
				var reData = common_ajax.ajaxFunc(url,data,"json");
				if(reData.msg==200){
					$("#customerIds").val(reData.customer.ids);
					$("#customerName").textbox('setValue',reData.customer.name);
					$("#customerPhone").textbox('setValue',reData.customer.phone);
					$("#customerHybh").textbox('setValue',reData.customer.hybh);
				}
			}); */
		
		
		
		
		
		
		
		
		
		
		
		</script>
	</body>
</html>

